package cn.golxen.barcode.feign;

import cn.golxen.commons.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "supermarket-management-goods")
public interface GoodsFeign {

    @GetMapping(value = "/{code}")
    public Result getGoodsByCode(@PathVariable(value = "code") String code);
}
